package cn.bdqn.util;

import cn.bdqn.pojo.ItripUserLinkUser;

import java.util.List;

public class LinkUserPage {
    private int pageno; //当前页
    private int pagesum = 3; //页面显示数量
    private int totilMessage; //所有信息
    private int totilPages; //所有页
    private int startMessage; //开始信息
    private List<?> list;
    private ItripUserLinkUser itripUserLinkUser;

    public LinkUserPage(int pageno,int totilMessage){
        this.pageno=pageno;
        this.startMessage=(pageno-1)*this.pagesum;
        this.totilMessage=totilMessage;
        this.totilPages=totilMessage%3==0 ? totilMessage/this.pagesum : totilMessage/this.pagesum+1;
    }

    public LinkUserPage() {
    }

    public int getPageno() {
        return pageno;
    }

    public void setPageno(int pageno) {
        this.pageno = pageno;
    }

    public int getPagesum() {
        return pagesum;
    }

    public void setPagesum(int pagesum) {
        this.pagesum = pagesum;
    }

    public int getTotilMessage() {
        return totilMessage;
    }

    public void setTotilMessage(int totilMessage) {
        this.totilMessage = totilMessage;
    }

    public int getTotilPages() {
        return totilPages;
    }

    public void setTotilPages(int totilPages) {
        this.totilPages = totilPages;
    }

    public int getStartMessage() {
        return startMessage;
    }

    public void setStartMessage(int startMessage) {
        this.startMessage = startMessage;
    }

    public List<?> getList() {
        return list;
    }

    public void setList(List<?> list) {
        this.list = list;
    }

    public ItripUserLinkUser getItripUserLinkUser() {
        return itripUserLinkUser;
    }

    public void setItripUserLinkUser(ItripUserLinkUser itripUserLinkUser) {
        this.itripUserLinkUser = itripUserLinkUser;
    }
}
